package ch5;

public class DogTest {

	public static void main(String[] args) {
		int n = Dog.legs;
		System.out.println(n);
		System.out.println("狗有" + Dog.legs + "条腿");
		Dog d = new Dog("哮天犬", "黑");
		d.show();
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>");
		System.out.println("物种变异了。。。");

		Dog.legs = 5;

		d.show();
		System.out.println("再次变异：");
		d.legs = 8;
		System.out.println("狗有" + Dog.legs + "条腿");

		Dog d2 = new Dog("大黄", "黄");
		d2.show();

		System.out.println(">>>>>>>>>>>>>>>");
		Dog.printFeetNums();
	}

}
